/**
 * @file status_and_setting.h
 *
 */
#ifndef STATUS_AND_SETTING_H
#define STATUS_AND_SETTING_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../lv_watch_conf.h"
#endif

#if USE_LV_WATCH_STATUS_AND_SETTING != 0

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
typedef struct
{
    lv_cont_ext_t oldext;
    lv_obj_t      *phone_signal_img;
    lv_obj_t      *wifi_signal_img;
    lv_obj_t      *network_status_cont;
    lv_obj_t      *charging_img;
    lv_obj_t      *battery_img;
    lv_obj_t      *date_label;
    lv_obj_t      *weekday_label;
    lv_obj_t      *time_label;
    // bool          update;
} lv_status_ext_t;
/**********************
 * GLOBAL PROTOTYPES
 **********************/
lv_obj_t * status_and_setting_create(lv_obj_t * tilevew, uint16_t id);
extern const char * status_get_battery_img(uint8_t level);
extern void setting_set_backlight_intensity(uint8_t intensity, bool writenvm);
extern void setting_set_ring_volume(uint8_t volume, bool writenvm, bool play);
/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_STATUS_AND_SETTING*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*STATUS_AND_SETTING_H*/
